function myInstanceof(L, R) {
    if (typeof (L) !== 'object' || L === null) {
        return false
    }
    L = L.__proto__
    while (L) {
        if (L === R.prototype) {
            return true
        }
        L = L.__proto__
    }
    return false
}
